package tbdp.tas

/**
  * Created by xbkaishui on 16/9/11.
  * run ZJ-HZ-BN01-KAFKA-02:9092,ZJ-HZ-BN01-KAFKA-03:9092 10
  */
object SelectStock {

  def main(args: Array[String]) {
    val Array(brokers, interval) = args.take(2)
    val dt = {
      if (args.size > 2) {
        args(2)
      } else {
        Utils.getDate()
      }
    }
    println(brokers, interval, dt)

    val selectStockHandler = new SelectStockHandler(brokers, interval, dt)
    selectStockHandler.handler()
  }

}
